package com.atguigu.edu.pubshier.service.impl;

import com.atguigu.edu.pubshier.mapper.FavorableRateMapper;
import com.atguigu.edu.pubshier.service.FavorableRateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author: 洛尘
 * @since: 2023-10-23 15:58
 * @description: 好评率
 **/
@Service
public class FavorableRateServiceImpl implements FavorableRateService {
    @Autowired
    FavorableRateMapper favorableRateMapper;

    @Override
    public List<Map<String, BigDecimal>> getFavorableRate(Integer date) {
        return favorableRateMapper.selectFavorableRate(date);
    }
}